import { NgModule } from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {DeviceListComponent} from './device-manage/device-list/device-list.component';
import {CommodityListComponent} from './commidity-mamage/commodity-list/commodity-list.component';
import {CommodityInfoComponent} from './commidity-mamage/commodity-info/commodity-info.component';
import {DeviceDetailComponent} from './device-manage/device-detail/device-detail.component';
import { UsedOrderListComponent } from './used-order-manage/used-order-list/used-order-list.component';
import { UsedOrderDetailsComponent } from './used-order-manage/used-order-details/used-order-details.component';
import { UsedLocationManageComponent } from './used-location-manage/used-location-manage.component';
import {OutStoreListComponent} from './out-store/out-store-list/out-store-list.component';
import {OutStoreAddComponent} from './out-store/out-store-add/out-store-add.component';
import {OutStoreDetailComponent} from './out-store/out-store-detail/out-store-detail.component';
import { UsedOrderBranchComponent } from './used-order-manage/used-order-branch/used-order-branch.component';
import { LogisticsRecordsComponent } from './logistics-records/logistics-records.component';
import { OutSaleInfoComponent } from './out-store/out-sale-info/out-sale-info.component';
import { SecondCouponListComponent } from './used-marketing-manage/second-coupon-list/second-coupon-list.component';
import { SecondCouponEditComponent } from './used-marketing-manage/second-coupon-edit/second-coupon-edit.component';
import { SecondCouponDetailsComponent } from './used-marketing-manage/second-coupon-details/second-coupon-details.component';
import { SecondUserCouponComponent } from './used-marketing-manage/second-user-coupon/second-user-coupon.component';
import { SecondDescentListComponent } from './used-marketing-manage/second-descent-list/second-descent-list.component';
import { SecondDescentEditComponent } from './used-marketing-manage/second-descent-edit/second-descent-edit.component';
import { SecondDescentDetailsComponent } from './used-marketing-manage/second-descent-details/second-descent-details.component';
import { SecondDescentRecordComponent } from './used-marketing-manage/second-descent-record/second-descent-record.component';
import { UsedRentplaneListComponent } from './used-rentplane-manage/used-rentplane-list/used-rentplane-list.component';
import { UsedAfterSalesListComponent } from './used-after-sales-manage/used-after-sales-list/used-after-sales-list.component';
import { UsedAfterSalesDetatilsComponent } from './used-after-sales-manage/used-after-sales-detatils/used-after-sales-detatils.component';
import { CommidityLabelListComponent } from './commidity-mamage/commidity-label-list/commidity-label-list.component';
import { CommidityLabelEditComponent } from './commidity-mamage/commidity-label-edit/commidity-label-edit.component';
import { CommidityWatermarkListComponent } from './commidity-mamage/commidity-watermark-list/commidity-watermark-list.component';
import { CommidityWatermarkEditComponent } from './commidity-mamage/commidity-watermark-edit/commidity-watermark-edit.component';
import {HotSearchComponent} from './hot-search/hot-search.component';
import {DeviceCheckComponent} from './device-check/device-check.component';


const routes: Routes = [
  {
    path: 'usedDeviceList',
    component: DeviceListComponent,
    data: {breadcrumb: '机器列表'}
  },
  {
    path: 'usedDeviceDetail',
    component: DeviceDetailComponent,
    data: {breadcrumb: '机器详情'}
  },
  {
    path: 'usedCommodityList',
    component: CommodityListComponent,
    data: {breadcrumb: '商品列表'}
  },
  {
    path: 'usedCommodityInfo',
    component: CommodityInfoComponent,
    data: {breadcrumb: '商品信息'}
  },
  {
    path: 'usedOrderList',
    component: UsedOrderListComponent,
    data: {breadcrumb: '订单管理', keep: true}
  },
  {
    path: 'usedOrderDetails',
    component: UsedOrderDetailsComponent,
    data: {breadcrumb: '订单详情'}
  },
  {
    path: 'usedOrderBranch',
    component: UsedOrderBranchComponent,
    data: {breadcrumb: '订单分账'}
  },
  {
    path: 'usedLocationManage',
    component: UsedLocationManageComponent,
    data: {breadcrumb: '库位管理'}
  },
  {
    path: 'usedOutList',
    component: OutStoreListComponent,
    data: {breadcrumb: '出库单管理'}
  },
  {
    path: 'usedOutAdd',
    component: OutStoreAddComponent,
    data: {breadcrumb: '出库单'}
  },
  {
    path: 'usedOutDetail',
    component: OutStoreDetailComponent,
    data: {breadcrumb: '出库单详情'}
  },
  {
    path: 'logisticsRecords',
    component: LogisticsRecordsComponent,
    data: {breadcrumb: '快递收发记录'}
  },
  {
    path: 'usedOutSaleInfo',
    component: OutSaleInfoComponent,
    data: {breadcrumb: '销售信息'}
  },
  {
    path: 'second-coupon-list',
    component: SecondCouponListComponent,
    data: {breadcrumb: '优惠券', keep: true}
  },
  {
    path: 'second-coupon-edit',
    component: SecondCouponEditComponent,
    data: {breadcrumb: '优惠券信息'}
  },
  {
    path: 'second-coupon-details',
    component: SecondCouponDetailsComponent,
    data: {breadcrumb: '优惠券详情'}
  },
  {
    path: 'second-user-coupon',
    component: SecondUserCouponComponent,
    data: {breadcrumb: '用户优惠券'}
  },
  {
    path: 'second-descent-list',
    component: SecondDescentListComponent,
    data: {breadcrumb: '直降促销管理', keep: true}
  },
  {
    path: 'second-descent-edit',
    component: SecondDescentEditComponent,
    data: {breadcrumb: '直降促销信息'}
  },
  {
    path: 'second-descent-details',
    component: SecondDescentDetailsComponent,
    data: {breadcrumb: '直降促销详情'}
  },
  {
    path: 'second-descent-record',
    component: SecondDescentRecordComponent,
    data: {breadcrumb: '直降促销记录'}
  },
  {
    path: 'used-rentplane-list',
    component: UsedRentplaneListComponent,
    data: {breadcrumb: '新机信息管理'}
  },
  {
    path: 'used-after-sales-list',
    component: UsedAfterSalesListComponent,
    data: {breadcrumb: '售后单管理', keep: true}
  },
  {
    path: 'used-after-sales-detatils',
    component: UsedAfterSalesDetatilsComponent,
    data: {breadcrumb: '售后单详情'}
  },
  {
    path: 'commidity-label-list',
    component: CommidityLabelListComponent,
    data: {breadcrumb: '商品标签', keep: true}
  },
  {
    path: 'commidity-label-edit',
    component: CommidityLabelEditComponent,
    data: {breadcrumb: '商品标签信息'}
  },
  {
    path: 'commidity-watermark-list',
    component: CommidityWatermarkListComponent,
    data: {breadcrumb: '商品水印'}
  },
  {
    path: 'commidity-watermark-edit',
    component: CommidityWatermarkEditComponent,
    data: {breadcrumb: '商品水印信息'}
  },
  {
    path: 'usedStoreHotSearch',
    component: HotSearchComponent,
    data: {breadcrumb: '热搜'}
  },
  {
    path: 'usedStoreDeviceCheck',
    component: DeviceCheckComponent,
    data: {breadcrumb: '机器验收'}
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class UsedStoreRoutingModule { }
